<table style="border: 1px;width: 100%;">
    <tr>
        <th>用户编号</th>
        <th>用户昵称</th>
        <th>微博内容</th>
        <th>微博来源</th>
        <th>发表时间</th>
        <th>微博注册</th>
        <th>微博评论</th>
    </tr>

<?php if(isset($rs['share_statuses'])):?>
<?php foreach ($rs['share_statuses'] as $k => $v):?>
<?php
$time   = date("Y-m-d H:i:s",strtotime($v['created_at']));
$created    = date("Y-m-d H:i:s",strtotime($v['user']['created_at']));
?>
<tr>
    <td><a href="http://weibo.com/<?php echo $v['user']['id'];?>" target="_blank" title="新窗口打开"><?php echo $v['user']['id'];?></a></td>
    <td><?php echo $v['user']['screen_name'];?></td>
    <td><?php echo $v['text'];?></td>
    <td><?php echo str_replace('<a','<a target="_blank"',$v['source']);?></td>
    <td><?php echo $time;?></td>
    <td><?php echo $created;?></td>
    <td><a href="show_weibo_comment?id=<?php echo $v['mid'];?>">查看</a></td>
</tr>
<?php endforeach;?>
<?php endif; ?>
</table>
<span>短网址6位：<input name="val" id="val" />&nbsp;&nbsp;<a href="javascript:go();">查询</a></span>
<script type="text/javascript">
    function go(){
        var url = document.getElementById('val').value;
        if('' !=url){
            window.location.href= 'show_share_statuses_weibo?url='+url;
        }
    }
</script>

